package Events;

import javax.swing.JPanel;

/**
 * Path Event:
 *
 */
public abstract class PathEvent extends Event{
	private static final long serialVersionUID = 1L;
	protected int location = 0;
	protected boolean running;
	protected JPanel [] phases;
	
	/**
	 * Constructor
	 * @param name
	 * @param description
	 * @param location
	 */
	public PathEvent(String name, String description, int location){
		super(name, description);
		this.location = location;
		running = false;
	}
	
	/**
	 * Location Accessor for this PathEvent
	 * @return location
	 */
	public double getLocal() {
	    return location;
	}
	
	public abstract boolean isRunning();
	public abstract void nextPhase();
	public abstract void prevPhase();
}
